<meta charset="UTF-8">
<script type="text/javascript">
$(function(){
	$.post('grade/peasonId',function(data){
			$('#ClassGradeTable').datagrid($.extend({},$.crudgrid.defaults,{
				url:'grade/page2?xsId='+data,
				title:'个人成绩查询',
				columns:[
					[
						{title:'课程',field:'course',width:200,formatter:function(value,row,index){
			            		return row.course.name;
							}
			           	},
						{title:'成绩',field:'grade',width:200,formatter:function(value,row,index){
							   return row.grade;
							}
						},
					]		
				],
				toolbar:['-',$.crudgrid.buttons.refrsh,'-']
			}))
		})
})
</script>

<table id="ClassGradeTable"></table>

